import { } from './actionCreators'
import { fromJS } from 'immutable'
import {
  CHANGE_LOGIN,
  CHANGE_LOGOUT
} from './actionCreators'

const defaultState = fromJS({
  islogin: false
})

export default (state = defaultState, action) => {
  switch (action.type) {
    case CHANGE_LOGIN:
      return state.set('islogin', action.value)
    case CHANGE_LOGOUT:
      return state.set('islogin', action.value)
    default: 
      return state
  }
}
